package com.chuhe.common.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import springfox.documentation.spring.web.plugins.Docket;

@Component
public class SwaggerVerification implements CommandLineRunner {

    @Autowired
    private Docket docket;

    @Override
    public void run(String... args) throws Exception {
        if (docket != null) {
            System.out.println("Swagger configuration is loaded successfully.");
        } else {
            System.out.println("Swagger configuration failed to load.");
        }
    }
}